package com.shensi.api.pay.param.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Auther: zxy
 * @Date: 2023/8/11 16:45
 * @Description:
 */
@Data
@ApiModel("积分调整")
@NoArgsConstructor
@AllArgsConstructor
public class UpdateIntegralRequest {

    @ApiModelProperty(value = "调整类型 0减 1加")
    @Range(min = 0,max = 1)
    private Integer type;

    @ApiModelProperty(value = "积分")
    @NotEmpty(message = "积分不能为空")
    @Length(max = 10,min = 1,message = "积分长度不能超过十位数")
    private String points;

    @ApiModelProperty(value = "油站id")
    @NotNull(message = "修改积分失败，请传油站id")
    private Integer stationId;

    @ApiModelProperty(value = "会员码")
    private String keywords;

}
